﻿CREATE TABLE [dbo].[tblOutboundCampaign] (
    [CampaignID]   INT           IDENTITY (1, 1) NOT NULL,
    [TransDnisID]  INT           NULL,
    [Description]  VARCHAR (50)  NOT NULL,
    [Active]       CHAR (1)      NOT NULL,
    [ScriptFile]   VARCHAR (100) NULL,
    [CampaignType] INT           NOT NULL
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines an outbound campaign.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'tblOutboundCampaign';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The campaign ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'tblOutboundCampaign', @level2type = N'COLUMN', @level2name = N'CampaignID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Obsolete field', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'tblOutboundCampaign', @level2type = N'COLUMN', @level2name = N'TransDnisID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Description of the campaign.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'tblOutboundCampaign', @level2type = N'COLUMN', @level2name = N'Description';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines whether a campaign is active (1), or not (0).', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'tblOutboundCampaign', @level2type = N'COLUMN', @level2name = N'Active';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Name and location of file used for campaign', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'tblOutboundCampaign', @level2type = N'COLUMN', @level2name = N'ScriptFile';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Type of campaign: 1, 2, or 3 for phone, email, and mail, respectively.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'tblOutboundCampaign', @level2type = N'COLUMN', @level2name = N'CampaignType';

